<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      Firefox-68.5.0
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;40.&nbsp;Graphical Web Browsers
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="falkon.html" title="Falkon-3.1.0">Prev</a>
          <p>
            Falkon-3.1.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="seamonkey.html" title=
          "SeaMonkey-2.53.1">Next</a>
          <p>
            SeaMonkey-2.53.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphweb.html" title=
          "Chapter&nbsp;40.&nbsp;Graphical Web Browsers">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="firefox" name="firefox"></a>Firefox-68.5.0
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Firefox
        </h2>
        <p>
          <span class="application">Firefox</span> is a stand-alone browser
          based on the <span class="application">Mozilla</span> codebase.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://archive.mozilla.org/pub/firefox/releases/68.5.0esr/source/firefox-68.5.0esr.source.tar.xz">
                https://archive.mozilla.org/pub/firefox/releases/68.5.0esr/source/firefox-68.5.0esr.source.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: f4102dfffdb52613b89cc891ca04c9c0
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 300 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 4.3 GB (166 MB installed)
                without tests
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 24 SBU (with parallelism=4) without
                tests
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Additional Downloads
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Optional patch to allow system versions of <a class="xref"
                href="../general/graphite2.html" title=
                "Graphite2-1.3.13">Graphite2-1.3.13</a> and <a class="xref"
                href="../general/harfbuzz.html" title=
                "HarfBuzz-2.6.4">HarfBuzz-2.6.4</a>: <a class="ulink" href=
                "http://www.linuxfromscratch.org/patches/blfs/9.1/firefox-68.5.0esr-system_graphite2_harfbuzz-1.patch">
                http://www.linuxfromscratch.org/patches/blfs/9.1/firefox-68.5.0esr-system_graphite2_harfbuzz-1.patch</a>
              </p>
            </li>
          </ul>
        </div>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            The directory name is firefox-68.5.0
          </p>
          <p>
            Extracting the tarball will reset the permissions of the current
            directory to 0755 if you have permission to do that. If you do
            this in a directory where the sticky bit is set, such as
            <code class="filename">/tmp</code> it will end with error
            messages:
          </p>
          <div class="literallayout">
            <p>
              tar:&nbsp;.:&nbsp;Cannot&nbsp;utime:&nbsp;Operation&nbsp;not&nbsp;permitted<br />

              tar:&nbsp;.:&nbsp;Cannot&nbsp;change&nbsp;mode&nbsp;to&nbsp;rwxr-xr-t:&nbsp;Operation&nbsp;not&nbsp;permitted<br />

              tar:&nbsp;Exiting&nbsp;with&nbsp;failure&nbsp;status&nbsp;due&nbsp;to&nbsp;previous&nbsp;errors<br />
              </p>
          </div>
          <p>
            This does finish with non-zero status, but it does <span class=
            "emphasis"><em>NOT</em></span> mean there is a real problem. Do
            not untar as the <code class="systemitem">root</code> user in a
            directory where the sticky bit is set - that will unset it.
          </p>
          <p>
            As with other large packages which use C++ (or rust), the SBU
            times to build this vary more widely than you might expect. Also,
            6GB of real memory is used during the final link and the SBUs can
            increase significantly if the machine has to swap.
          </p>
          <p>
            The mach build system (Python scripts) can be somewhat
            unreliable: if the build fails and reports an Error, it can still
            return a status of success, causing a scripted build to try to
            install (which does not rerun the build), fail during the
            preparations for installing, but still exit with a status of
            success. Also, on occasion it may limit itself to only running
            one set of jobs - that will make the build take about 3 times as
            long as running with four sets of jobs.
          </p>
          <p>
            Although upstream prefer to use <span class=
            "application">PulseAudio</span>, for the moment <span class=
            "application">Alsa</span> can still be used. Both may need
            runtime configuration to get sound working.
          </p>
        </div>
        <h3>
          Firefox Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="../general/autoconf213.html" title=
          "Autoconf2.13">Autoconf-2.13</a>, <a class="xref" href=
          "../general/cbindgen.html" title=
          "Cbindgen-0.13.1">Cbindgen-0.13.1</a>, <a class="xref" href=
          "../general/dbus-glib.html" title=
          "dbus-glib-0.110">dbus-glib-0.110</a>, both <a class="xref" href=
          "../x/gtk3.html" title="GTK+-3.24.13">GTK+-3.24.13</a> and
          <a class="xref" href="../x/gtk2.html" title=
          "GTK+-2.24.32">GTK+-2.24.32</a>, <a class="xref" href=
          "../x/libnotify.html" title="libnotify-0.7.8">libnotify-0.7.8</a>,
          <a class="xref" href="../general/nodejs.html" title=
          "Node.js-12.16.1">nodejs-12.16.1</a>, <a class="xref" href=
          "../postlfs/nss.html" title="NSS-3.50">NSS-3.50</a>, <a class=
          "xref" href="../multimedia/pulseaudio.html" title=
          "PulseAudio-13.0">PulseAudio-13.0</a> (or <a class="xref" href=
          "../multimedia/alsa-lib.html" title=
          "alsa-lib-1.2.1.2">alsa-lib-1.2.1.2</a> if you edit the mozconfig;
          now deprecated by mozilla), in either case please read the
          Configuration Information, <a class="xref" href=
          "../general/rust.html" title="Rustc-1.37.0">rustc-1.37.0</a>,
          <a class="xref" href="../general/unzip.html" title=
          "UnZip-6.0">UnZip-6.0</a>, <a class="xref" href=
          "../general/yasm.html" title="yasm-1.3.0">yasm-1.3.0</a>, and
          <a class="xref" href="../general/zip.html" title=
          "Zip-3.0">Zip-3.0</a>
        </p>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="../general/icu.html" title=
          "ICU-65.1">ICU-65.1</a>, <a class="xref" href=
          "../basicnet/libevent.html" title=
          "libevent-2.1.11">libevent-2.1.11</a>, <a class="xref" href=
          "../general/libwebp.html" title="libwebp-1.1.0">libwebp-1.1.0</a>,
          <a class="xref" href="../general/nasm.html" title=
          "NASM-2.14.02">NASM-2.14.02</a>, and <a class="xref" href=
          "../server/sqlite.html" title="SQLite-3.31.1">SQLite-3.31.1</a>
        </p>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            If you don't install recommended dependencies, then internal
            copies of those packages will be used. They might be tested to
            work, but they can be out of date or contain security holes.
          </p>
        </div>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../basicnet/curl.html" title=
          "cURL-7.68.0">cURL-7.68.0</a>, <a class="xref" href=
          "../general/doxygen.html" title=
          "Doxygen-1.8.17">Doxygen-1.8.17</a>, <a class="xref" href=
          "../multimedia/ffmpeg.html" title="FFmpeg-4.2.2">FFmpeg-4.2.2</a>
          (runtime, to play mov, mp3 or mp4 files), <a class="xref" href=
          "../postlfs/liboauth.html" title=
          "liboauth-1.0.3">liboauth-1.0.3</a>, <a class="xref" href=
          "../general/openjdk.html" title=
          "OpenJDK-12.0.2">OpenJDK-12.0.2</a>, <a class="xref" href=
          "../x/startup-notification.html" title=
          "startup-notification-0.12">startup-notification-0.12</a>,
          <a class="xref" href="../general/valgrind.html" title=
          "Valgrind-3.15.0">Valgrind-3.15.0</a>, <a class="xref" href=
          "../basicnet/wget.html" title="Wget-1.20.3">Wget-1.20.3</a>,
          <a class="xref" href="../basicnet/wireless_tools.html" title=
          "Wireless Tools-29">Wireless Tools-29</a>, <a class="ulink" href=
          "https://github.com/libproxy/libproxy">libproxy</a>, and (with the
          patch) <a class="xref" href="../general/graphite2.html" title=
          "Graphite2-1.3.13">Graphite2-1.3.13</a> and <a class="xref" href=
          "../general/harfbuzz.html" title=
          "HarfBuzz-2.6.4">HarfBuzz-2.6.4</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/firefox">http://wiki.linuxfromscratch.org/blfs/wiki/firefox</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Firefox
        </h2>
        <p>
          The configuration of <span class="application">Firefox</span> is
          accomplished by creating a <code class="filename">mozconfig</code>
          file containing the desired configuration options. A default
          <code class="filename">mozconfig</code> is created below. To see
          the entire list of available configuration options (and an
          abbreviated description of some of them), issue <span class=
          "command"><strong>./mach configure &amp;&amp; ./configure --help |
          less</strong></span>. You may also wish to review the entire file
          and uncomment any other desired options. Create the file by issuing
          the following command:
        </p>
        <pre class="userinput">
<kbd class="command">cat &gt; mozconfig &lt;&lt; "EOF"
<code class=
"literal"># If you have a multicore machine, all cores will be used by default.

# If you have installed (or will install) wireless-tools, and you wish
# to use geolocation web services, comment out this line
ac_add_options --disable-necko-wifi

# API Keys for geolocation APIs - necko-wifi (above) is required for MLS
# Uncomment the following line if you wish to use Mozilla Location Service
#ac_add_options --with-mozilla-api-keyfile=$PWD/mozilla-key

# Uncomment the following line if you wish to use Google's geolocaton API
# (needed for use with saved maps with Google Maps)
#ac_add_options --with-google-location-service-api-keyfile=$PWD/google-key

# Uncomment this line if you have installed startup-notification:
#ac_add_options --enable-startup-notification

# Uncomment the following option if you have not installed PulseAudio
#ac_add_options --disable-pulseaudio
# or uncomment this if you installed alsa-lib instead of PulseAudio
#ac_add_options --enable-alsa

# Comment out following options if you have not installed
# recommended dependencies:
ac_add_options --enable-system-sqlite
ac_add_options --with-system-libevent
# firefox-65 understands webp and ships with an included copy
ac_add_options --with-system-webp
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-icu

# Do not specify the gold linker which is not the default. It will take
# longer and use more disk space when debug symbols are disabled.

# libdavid (av1 decoder) requires nasm. Uncomment this if nasm
# has not been installed.
#ac_add_options --disable-av1

# You cannot distribute the binary if you do this
ac_add_options --enable-official-branding

# If you are going to apply the patch for system graphite
# and system harfbuzz, uncomment these lines:
#ac_add_options --with-system-graphite2
#ac_add_options --with-system-harfbuzz

# Stripping is now enabled by default.
# Uncomment these lines if you need to run a debugger:
#ac_add_options --disable-strip
#ac_add_options --disable-install-strip

# Disabling debug symbols makes the build much smaller and a little
# faster. Comment this if you need to run a debugger. Note: This is
# required for compilation on i686.
ac_add_options --disable-debug-symbols

# The BLFS editors recommend not changing anything below this line:
ac_add_options --prefix=/usr
ac_add_options --enable-application=browser

# The elf-hack is reported to cause failed installs (after successful builds)
# on some machines. It is supposed to improve startup time and it shrinks
# libxul.so by a few MB - comment this if you know your machine is not affected.
ac_add_options --disable-elf-hack

ac_add_options --disable-crashreporter
ac_add_options --disable-updater
# enabling the tests will use a lot more space and significantly
# increase the build time, for no obvious benefit.
ac_add_options --disable-tests

# The default level of optimization again produces a working build with gcc.
ac_add_options --enable-optimize

# From firefox-61 system cairo is not supported

ac_add_options --enable-system-ffi
ac_add_options --enable-system-pixman

# From firefox-62 --with-pthreads is not recognized

ac_add_options --with-system-bz2
ac_add_options --with-system-jpeg
ac_add_options --with-system-png
ac_add_options --with-system-zlib

# The following option unsets Telemetry Reporting. With the Addons Fiasco,
# Mozilla was found to be collecting user's data, including saved passwords and
# web form data, without users consent. Mozilla was also found shipping updates
# to systems without the user's knowledge or permission.
# As a result of this, use the following command to permanently disable
# telemetry reporting in Firefox.
unset MOZ_TELEMETRY_REPORTING

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</code>
EOF</kbd>
</pre>
        <p>
          Compile <span class="application">Firefox</span> by issuing the
          following commands:
        </p>
        <p>
          If you have installed system versions of graphite2 and harfbuzz and
          wish firefox to use those instead of its shipped versions, apply
          the patch and uncomment the appropriate entries in the <code class=
          "filename">mozconfig</code> file.
        </p>
        <pre class="userinput">
<kbd class=
"command">patch -Np1 -i ../firefox-68.5.0esr-system_graphite2_harfbuzz-1.patch</kbd>
</pre>
        <p>
          If the geolocation APIs are needed:
        </p>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            The Google and Mozilla API Keys below are specific to LFS. If
            using these instructions for another distro, or if you intend to
            distribute binary copies of the software using these
            instructions, please obtain your own keys following the
            instructions located at <a class="ulink" href=
            "http://www.chromium.org/developers/how-tos/api-keys">http://www.chromium.org/developers/how-tos/api-keys</a>
            and <a class="ulink" href=
            "https://location.services.mozilla.com/api">https://location.services.mozilla.com/api</a>
            respectively.
          </p>
        </div>
        <pre class="userinput">
<kbd class=
"command">echo "AIzaSyDxKL42zsPjbke5O8_rPVpVrLrJ8aeE9rQ" &gt; google-key
echo "613364a7-9418-4c86-bcee-57e32fd70c23" &gt; mozilla-key</kbd>
</pre>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            If you are compiling <span class="application">Firefox</span> in
            chroot, make sure you have <code class="envar">$SHELL</code>
            environment variable set or prepend <code class=
            "envar">SHELL=/bin/sh</code>. Also ensure that <code class=
            "filename">/dev/shm</code> is mounted.
          </p>
        </div>
        <p>
          Now invoke the Python2 script to compile the package.
        </p>
        <pre class="userinput">
<kbd class="command">export CC=gcc CXX=g++ &amp;&amp;
export MOZBUILD_STATE_PATH=${PWD}/mozbuild &amp;&amp;
./mach build</kbd>
</pre>
        <p>
          The <code class="filename">mozconfig</code> above disables the
          tests because they use a lot more time and disk space for no
          obvious benefit. If you have nevertheless enabled them, you can run
          the tests by executing <span class="command"><strong>./mach
          gtest</strong></span>. This will require a network connection, and
          to be run from within an Xorg session - there is a popup dialog
          when it fails to connect to ALSA (that does not create a failed
          test). One or two tests will fail. To see the details of the
          failure(s) you will need to log the output from that command so
          that you can review it.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class=
"command">./mach install                                                  &amp;&amp;

mkdir -pv  /usr/lib/mozilla/plugins                             &amp;&amp;
ln    -sfv ../../mozilla/plugins /usr/lib/firefox/browser/</kbd>
</pre>
        <p>
          Set environment variables back to their values:
        </p>
        <pre class="userinput">
<kbd class="command">unset CC CXX MOZBUILD_STATE_PATH</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>sed -e 's/checkImpl/checkFFImpl/g'
          ...</strong></span>: Although the package ships with a modified
          version of <span class="application">ICU-63</span> and only tests
          that the system version, if used, is at least 63, changes from
          upstream 63 cause builds with the system version to fail with an
          error message <code class="literal">no void JSContext::checkImpl_63
          member function</code>. The sed renames the local function.
          Upstream ICU-64 works around this.
        </p>
        <p>
          <span class="command"><strong>export CC=gcc CXX=g++
          ...</strong></span>: Upstream now prefer <span class=
          "application">clang</span>, but gcc is a more secure compiler and
          now produces reasonably-sized builds.
        </p>
        <p>
          <span class="command"><strong>export
          MOZBUILD_STATE_PATH=${PWD}/mozbuild</strong></span>: The build is
          now supposed to tell you that it intends to create <code class=
          "filename">~/.mozbuild</code>, and offer you an option to press
          &lt;ENTER&gt; to accept this, or Ctrl-C to cancel and restart the
          build after specifying the directory. In practice, the message may
          not appear until after &lt;ENTER&gt; is keyed, i.e. the build
          stalls.
        </p>
        <p>
          That directory is used for a (probably random) telemetry
          identifier. Creating this in the build directory, and deleting that
          after the installation, prevents it being used. If you wish to
          participate in telemetry, export MOZBUILD_STATE_PATH to point to
          its default directory.
        </p>
        <p>
          <span class="command"><strong>./mach build</strong></span>:
          <span class="application">Firefox</span> now uses this <span class=
          "application">python2</span> script to run the build and install.
        </p>
        <p>
          <code class="option">./mach build --verbose</code>: Use this
          alternative if you need details of which files are being compiled,
          together with any C or C++ flags being used.
        </p>
        <p>
          <code class="option">./mach build -jN</code>: The build should, by
          default, use all the online CPU cores. There are two reasons to
          specify the number of cores, e.g. -j4 for 4 cores: First, if using
          all the cores causes the build to swap because you have
          insufficient memory (e.g. for 4 cores a build without system
          graphite2 and harfbuzz now uses towards 8GB of RAM). In such cases,
          using fewer cores can be faster. Second, on some machines the
          middle part of the build can drag on as if only one core is
          present. In those cases, specifying the number of cores may speed
          up the build.
        </p>
        <p>
          <span class="command"><strong>mkdir -pv
          /usr/lib/mozilla/plugins</strong></span>: This ensures that
          <code class="filename">/usr/lib/mozilla/plugins/</code> exists.
        </p>
        <p>
          <span class="command"><strong>ln -sv ...
          /usr/lib/firefox/browser</strong></span>: This command creates a
          symbolic link to <code class=
          "filename">/usr/lib/mozilla/plugins</code>. It's not really needed,
          as <span class="application">Firefox</span> checks <code class=
          "filename">/usr/lib/mozilla/plugins</code> by default, but the
          symbolic link is made to keep all the plugins installed in one
          folder.
        </p>
        <p>
          <code class="option">export CC=clang CXX=clang++ AR=llvm-ar
          NM=llvm-nm RANLIB=llvm-ranlib</code>: Use this as an alternative to
          building with gcc and g++ if you wish to use the clang toolchain.
          Remember to unset these variables after the build.
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring Firefox
        </h2>
        <p>
          If you use a desktop environment like <span class=
          "application">Gnome</span> or <span class="application">KDE</span>
          you may like to create a <code class=
          "filename">firefox.desktop</code> file so that <span class=
          "application">Firefox</span> appears in the panel's menus. If you
          didn't enable startup-notification in your mozconfig change the
          StartupNotify line to false. As the <code class=
          "systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">mkdir -pv /usr/share/applications &amp;&amp;
mkdir -pv /usr/share/pixmaps &amp;&amp;

cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; "EOF" &amp;&amp;
<code class="literal">[Desktop Entry]
Encoding=UTF-8
Name=Firefox Web Browser
Comment=Browse the World Wide Web
GenericName=Web Browser
Exec=firefox %u
Terminal=false
Type=Application
Icon=firefox
Categories=GNOME;GTK;Network;WebBrowser;
MimeType=application/xhtml+xml;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true</code>
EOF

ln -sfv /usr/lib/firefox/browser/chrome/icons/default/default128.png \
        /usr/share/pixmaps/firefox.png</kbd>
</pre>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3"></h3>
          <h4 class="title">
            <a id="idm45779239352512" name=
            "idm45779239352512"></a>Configuration Information
          </h4>
          <p>
            The application settings for firefox are accessible by keying
            <span class="command"><strong>about:config</strong></span> in the
            address bar.
          </p>
          <p>
            With this version of <span class="application">firefox</span>,
            getting working sound can be a problem. Although upstream prefers
            pulseaudio, on balance using <span class=
            "application">Alsa</span> may be easier.
          </p>
          <p>
            If you enabled <span class="application">Alsa</span> for sound,
            you may need to alter one variable to get working sound. If you
            run <span class="command"><strong>firefox</strong></span> from a
            term and try to play something with sound you might encounter
            error messages like:
          </p>
          <p>
            <code class="literal">Sandbox: seccomp sandbox violation: pid
            3941, tid 4030, syscall 16, args 48 2147767296 139909894784796 0
            0 0.</code>
          </p>
          <p>
            That was on x86_64, on i686 the syscall number is 54. To allow
            this syscall, in <span class=
            "command"><strong>about:config</strong></span> change
            <span class="command"><strong>security.sandbox.content.syscall_whitelist</strong></span>
            to 16 (or 54 if using i686).
          </p>
          <p>
            If you use <span class=
            "command"><strong>pulseaudio</strong></span> in a Desktop
            Environment, it might already be started by that DE. But if it is
            not, although firefox-57 managed to start it, firefox-58 did not.
            If you run <span class="command"><strong>firefox</strong></span>
            from a term and this problem is present, trying to play sound
            will encounter error messages warning <code class="literal">Can't
            get cubeb context!</code>
          </p>
          <p>
            The fix for this is to close firefox, start pulseaudio to check
            it does start (if not, read the information on Configuring in
            <a class="xref" href="../multimedia/pulseaudio.html" title=
            "PulseAudio-13.0">PulseAudio-13.0</a>) and restart firefox to
            check it is working. If it now works, add the following to your
            <code class="filename">~/.xinitrc</code>: <span class=
            "phrase"><code class="literal">pulseaudio --verbose
            --log-target=syslog&amp;</code></span> (unfortunately, on some
            systems this does not work).
          </p>
          <p>
            You may wish to use multiple profiles within firefox. To do that,
            invoke firefox as <span class="command"><strong>firefox
            --ProfileManager</strong></span>. You can also check which
            profile is currently in use from <span class=
            "command"><strong>about:profiles</strong></span>.
          </p>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">firefox</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">Numerous libraries, browser components,
              plugins, extensions, and helper modules installed in
              /usr/lib/firefox</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directory:</strong>
              <span class="segbody">/usr/lib/firefox and
              /usr/lib/mozilla</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="firefox-prog" name="firefox-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>firefox</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a <span class="application">GTK+-3</span> internet
                    browser that uses the Mozilla Gecko rendering engine.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-16 15:50:16 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="falkon.html" title="Falkon-3.1.0">Prev</a>
          <p>
            Falkon-3.1.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="seamonkey.html" title=
          "SeaMonkey-2.53.1">Next</a>
          <p>
            SeaMonkey-2.53.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphweb.html" title=
          "Chapter&nbsp;40.&nbsp;Graphical Web Browsers">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
